package com.design.model.composite;

/**
 * @program: study
 * @className: Component
 * @description: TODO
 * @author: kukuxiahuni
 * @create: 2019-07-03 11:35
 * @version: v1.0
 **/
public abstract class Component {
    protected String name;

    public Component(String name) {
        this.name = name;
    }

    public abstract void add(Component component);
    public abstract void remove(Component component);
    public abstract void display(int depth);
}
